//
//  ArmySquareFormation.m
//  Legions
//
//  Created by Legions on 07/07/14.
//  Copyright (c) 2014 RefeSoft. All rights reserved.
//

#import "ArmySoldierFormation.h"
#import "Soldier.h"

@implementation ArmySoldierFormation{
    SKSpriteNode<GameObjectType> *armyHandlerSprite;
    
    NSMutableArray          *soldierList;
}

-(instancetype) initWithArmyHandler :(ArmyHandler<GameObjectType>*) armyHandlerSpriteToChange{
    self                =   [[ArmySoldierFormation alloc] init];
    armyHandlerSprite   =   armyHandlerSpriteToChange;
    
    soldierList         = [[NSMutableArray alloc] init];

    Soldier<GameObjectType>    *soldier1   = [[Soldier alloc] initWithParentNode: armyHandlerSprite position:CGPointMake(10, -20)];
    
    soldier1.alpha = 1;
    
    [self addSolider:soldier1];

    return self;
}

-(void) addSolider:(Soldier *)soldier{
    [soldierList addObject:soldier];
}

@end
